package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 角色对象 role
 * 
 * @author ruoyi
 * @date 2025-05-06
 */
public class Role extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 角色id */
    private Long rid;

    /** 角色名称 */
    @Excel(name = "角色名称")
    private String roleName;

    /** 角色人数 */
    @Excel(name = "角色人数")
    private Long roleNum;

    /** 角色描述 */
    @Excel(name = "角色描述")
    private String roleDescription;

    /** 状态使用(1启用,2禁用) */
    @Excel(name = "状态使用(1启用,2禁用)")
    private String status;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    public void setRid(Long rid) 
    {
        this.rid = rid;
    }

    public Long getRid() 
    {
        return rid;
    }

    public void setRoleName(String roleName) 
    {
        this.roleName = roleName;
    }

    public String getRoleName() 
    {
        return roleName;
    }

    public void setRoleNum(Long roleNum) 
    {
        this.roleNum = roleNum;
    }

    public Long getRoleNum() 
    {
        return roleNum;
    }

    public void setRoleDescription(String roleDescription) 
    {
        this.roleDescription = roleDescription;
    }

    public String getRoleDescription() 
    {
        return roleDescription;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("rid", getRid())
            .append("roleName", getRoleName())
            .append("roleNum", getRoleNum())
            .append("roleDescription", getRoleDescription())
            .append("status", getStatus())
            .append("addTime", getAddTime())
            .toString();
    }
}
